package model;

import java.util.ArrayList;
/**
 * cusomer History details
 * @author moshe
 *
 */
public class CustomerHistoryModel extends AbstractModel{
	/**
	 * first name
	 */
	private	String Fname = "";
	/**
	 * last name 
	 */
	private	String Lname = "";
	/**
	 * ID
	 */
	private String Cid = "";
	public ArrayList<detailsHistory> DetailHis = null;

	/**
	 * contructor
	 * @param f
	 * @param l
	 * @param C
	 */
	public CustomerHistoryModel(String f,String l, String C){
		Fname = f;
		Lname = l;
		Cid = C;
		DetailHis = new ArrayList<detailsHistory>();
	}

	
	public String getFname()
	{
		return Fname;
	}
	public String getLname()
	{
		return Lname;
	}
	public String getCID()
	{
		return Cid ;
	}
	
	public ArrayList<detailsHistory> getDetailHis() {
		return DetailHis;
	}
	
	
	/**
	 * set for history details
	 * @param c
	 * @param q
	 * @param d
	 * @param co
	 * @param t
	 */
	public void SetHistory(String c,int q,String d,String co,int t)
	{
		DetailHis.add(new detailsHistory(c,q,d,co,t));
	}
	/**
	 * the details about the customers action
	 * @author moshe
	 *
	 */
	public class detailsHistory extends AbstractModel{
		public String cmp_id = "";
		public int Qu =0 ;
		public String Date1 = "";
		public String Comments = "";
		public int time_call = 0;
		
		public detailsHistory(String c,int q,String d,String co,int t)
		{
			cmp_id = c;
			Qu = q;
			Date1 =d;
			Comments = co;
			time_call = t;			
		}
		
		
		
	}

	
	
}
